SlkUtilities.RetryOnDeadlock Method

Executes a delegate. If a SQL Server deadlock occurs while executing the delegate, the delegate is re-executed, for a maximum of 5 attempts.

Parent Type: SlkUtilities

Namespace: Microsoft.SharePointLearningKit

Assembly: Microsoft.SharePointLearningKit.dll

Syntax
C#

public static void RetryOnDeadlock (
VoidDelegate del

)

Parameters

del

The delegate to execute. Important: since this delegate may be executed more than once, it should not update any data outside the delegate unless the update operation is safely repeatable.